<%@page import="org.durcframework.rms.entity.RSysRes"%>
<%@page import="java.util.List"%>
<%@page import="org.durcframework.rms.common.RMSContext"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="../taglib.jsp" %>
<%
List<RSysRes> userMenu = RMSContext.getInstance().getUserMenu();
request.setAttribute("menus", userMenu);
%>
<div class="sidebar-wrap">
	<div class="sidebar-title">
	    <h1>菜单</h1>
	</div>
	<div class="sidebar-content">
     	<ul class="sidebar-list">
		<c:forEach items="${menus}" var="menu">
			<li>
				<a href="#"><i class="icon-font">&#xe003;</i>${menu.resName}</a>
				<ul class="sub-menu">
					<c:forEach items="${menu.children}" var="child">
						<li>
							<a href="${ctx}${child.url}?srId=${child.srId}" class="uuid-${child.srId}">
							<i class="icon-font">&nbsp;</i>${child.resName}
							</a>
						</li>
					</c:forEach>
				</ul>
			</li>
		</c:forEach>
		</ul>
	</div>
</div>